package com.oa.demo.server.system;

import com.oa.demo.common.annotation.BaseCloudApplication;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.cloud.client.discovery.EnableDiscoveryClient;
import org.springframework.security.config.annotation.method.configuration.EnableGlobalMethodSecurity;

/**
 * @author 孔德成
 * @date 2020/11/23 14:16
 */
@SpringBootApplication
@EnableDiscoveryClient
//开启Spring Cloud Security权限注解
@EnableGlobalMethodSecurity(prePostEnabled = true)
//基础的异常处理导入
//@EnableBaseAuthExceptionHandler
@BaseCloudApplication
public class ServerSystemApplication {

    public static void main(String[] args) {
        SpringApplication.run(ServerSystemApplication.class).start();
    }
}
